(function (window){
    let data = "abcque"
    function foo(){
        console.log("call function foo()")
        console.log(`data: ${data}`)
    }

    // 主动暴露行为
    window.myModule = {data, foo}
})(window);